package com.yzqp.common.mvc.base;

public class FEntry{
    String name;
    Object value;

    public FEntry(String name, Object value) {
        this.name = name;
        this.value = value;
    }

    public static FEntry[] build(String name, Object value){
        FEntry[] arr = new FEntry[1];
        arr[0] = new FEntry(name, value);
        return arr;
    }

    public static FEntry[] build(String name1, Object value1, String name2, Object value2){
        FEntry[] arr = new FEntry[2];
        arr[0] = new FEntry(name1, value1);
        arr[1] = new FEntry(name2, value2);
        return arr;
    }

    public static FEntry[] build(String name1, Object value1, String name2, Object value2, String name3, Object value3){
        FEntry[] arr = new FEntry[3];
        arr[0] = new FEntry(name1, value1);
        arr[1] = new FEntry(name2, value2);
        arr[2] = new FEntry(name3, value3);
        return arr;
    }
}
